home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 16
/
Aminet 16 (1996)(GTI - Schatztruhe)[!][Dec 1996].iso
/
Aminet
/
util
/
sys
/
stringer.lha
/
Stringer20
/
start_most.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-10-08
|
783b
|
26 lines
/*
* Stringer example AREXX script to use with the text viewer
* Most by Uwe Roehm (tested with v1.56)
*
* Displays a Textfile in Most and jumps to the match location
*
* To use this script to start Most as your default pager
* edit your default pager line in ENV:Stringer.prefs to this:
*
* rx >NIL: rexx:start_most.rexx %u "%f"
*
* This is a bit nasty since we assume that only one Most is
* running and therefore we use the MOST.0 portname without querying
* for a name. Please write a better one and send it to me.
* Most must be in your search path for this script to work.
*
*/
PARSE ARG arguments
PARSE VAR arguments position filename
ADDRESS COMMAND 'Run >NIL: Most 'filename
ADDRESS COMMAND 'WaitForPort MOSTPORT'
ADDRESS MOST.0 Goto LINE position
RETURN